package cn.dao;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class UserDao {
	
	
	
	public static List getAllUser(){
		try {
			List users = (List) SqlClient.getSqlMap().queryForList("selectAllUser");
			return users;
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return null;
	}
	
	public static void addUser(Map m){
		try {
			SqlClient.getSqlMap().insert("insertUser",m);
			
		} catch (SQLException e) {
			e.printStackTrace();
		}
		
	}
	
}
